package com.example.com.skills_utf8;

import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;


public class _68Activity extends Activity implements View.OnClickListener{

    _68Activity activity = this;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity__68);


        init();

    }


    void init(){

        Button btn_control = (Button)findViewById(R.id.btn_control);
        btn_control.setOnClickListener(this);

    }



    @Override
    public void onClick(View v) {
        // TODO Auto-generated method stub

        Fragment fragment = null;

        switch(v.getId()){

            case R.id.btn_control:
                fragment = new _68Fragment();
                break;



        }

        if(fragment != null){
            android.app.FragmentTransaction transaction = getFragmentManager().beginTransaction();
            transaction.replace(R.id.layout_content, fragment);
            transaction.commit();
        }



    }


}
